package com.heart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heart.dao.entity.Answer;
import com.heart.dao.entity.AnswerMain;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface AnswerMainService extends IService<AnswerMain> {
    boolean saveAnswer(HttpServletRequest request, HttpServletResponse response, AnswerMain answerMain);
    List<AnswerMain> getAnswerMainListByQuestionId(String questionId);
    List<Answer> getAnswerListByAnswerMainId(String mainId);
    boolean deleteAnswer(String detailId);
}
